package com.qf.service.impl;

import com.qf.domain.EbookCategory;

import com.qf.mapper.EbookCategoryMapper;
import com.qf.service.EbookCategoryService;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional //开启事务
//@Slf4j//日志
public class EbookCategoryServiceimpl implements EbookCategoryService {
//    private Logger logger= LoggerFactory.getLogger(EbookCategoryServiceimpl.class);
    @Autowired
    private EbookCategoryMapper ebookCategoryMapper;
    @Override
    public List<EbookCategory> findAll() {
//        log.info("查询EbookCategory");

        List<EbookCategory> ecs=ebookCategoryMapper.findAll();
        return ecs;
    }
}
